added database connection, database stored procedure