Removing inner joins from SQL statements since these wont work for now in SQLite as our tables are spread across multiple files