Add database connection code