SQL Updates

adding updates to SQL managment and data entry