db: add/edit stored procedure