python - load app using metadata from database