Made dbtable where: return a select query
enabled foreign keys by default
fixed delete query
Handled negation for IN operator