SQL: Improved query in edit_commit()
SQL: Improved query in edit_commit()

This one's a lot faster.

erengy/vndb,christian-roggia/vndb,morkt/vndb,erengy/vndb,christian-roggia/vndb,erengy/vndb,morkt/vndb,morkt/vndb,morkt/vndb,christian-roggia/vndb,morkt/vndb