add stored procedures and functions to database