db connection with flask added
templates added, related test cases and code added