most up to date file.
v 0.3 - db read functions added. write functions still need improvement.