Connection with database.