Properly configure DB and sync it when app container is run