Server: Changed commit variable scope
Server: small fixes
Server: Small fixes in database schema
Server: Fixed commit schema when connection is in autocommit mode
Server: Added methods for delete processed dataset in database
Server: Fixed query