Moar database preparation + helpers