added core folder and db connection fxns