SQL Fix

Was breaking until I limited the number of entries to 10. We need to
figure out how to allow more entries at some point.