move PRAGMA statements to db_init