created module for database connection