Separate app and db variables