LD_PRELOAD hack to execute SQLite statements when an SQLite database is opened