Use separate class for database connectivity