Updated loops in Operation

Don't allow adding doubles, empty items
Updated MySQL database schema

Added loops