added error checking and range validation for client data, fixed issues in sequencemanager.py and fixed bug in database