Added requirements file.
PEP 8
Added test script for db_functions.py
Added TODO comment, fix sleeping error.