fixed downdb
got downdb to work
moved config files
added log function