Added DB support to flask project