fixed the table initialization issue

created a init_db function that initializes all the tables.
acj.py calls this function when it runs.