Server SQL

Done with the server sql base