minor changes here and there. FIXED the connection to database NullPointerException
minor changes here and there. FIXED the connection to database NullPointerException