Fixed the file directory on the index and createdb files
Checks fofr the database connection