add database connection creation routine