myctl: added db grant command, fixed a few issues