Microblog app using flask in python with postgresql as database