added flask starter and db functions