added DataBase connection code and splash screen