Update markDatabaseAsSynced to use the correct sql statement