added config for db and table info, added includes