Added DB, Flask and Cellery related code, codestate: broken