Added database creation if doesn't exist