seperate to db initalization