create core folder, connect to mysql database