DB can be initialized when running flaskr.py

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>