In this work, we present DBgen, a python library that adds useful abstractions to the process of defining complex databases and ETL pipelines and thereby reduces the barrier to storing data in accordance with the FAIR principle. We also present a set of principles (SMART) that ETL pipelines should ideally abide by, analogous to the FAIR principles for data storage.