Tested and cleaned stored procedures of database