Fixed bugs on create/delete edges and vertices because they used the old API yet
Server: assed security check in case of root user
sql: added test case after the regression on min() and max() sql functions executed as inline