initial database controller