Fix schema and cmd

db access works now