lime database access optimization + DO NOT MERGE - JUST FOR WINDOWS DEBUG

Closed johan requested to merge backport/5.2/lime_db_and_update_upgrade_win_debug into release/5.2

Delete branches backport/5.2/lime_db_and_update_upgrade_win_debug from liblinphone and lime too when done

Merge request reports