connection using database.properties file