Fix issue #3
Try to init database when app is running