completing model structures

added sqlcommands for persistence