building and populating database tables and stored procedures