database connection and libraries added