Added logging to database creation and up/downgrading