[database] use IF EXISTS on DROP TABLE if we're not completely sure the table exists