Added stored procedures and updated tables