Add migrate support
handle database errors; pep8 improvements
add db manage script
updating requirements