Added stored procedures to NuoDB
Use the previous code as the non-stored procedure version