updated db files and main