seperates helpers functions as modules
seperates main function from bottle.py
adds test cases of is valid
adds is_registerd test cases
tobenamed returns a cursor instead of a dictionary
adds basic_stats test cases