Added stored procedure support. Fixes #42