Added new stored procedures as files and to database. Also fixes #13.
Amendment to previous commit with database stored procedure updates