# Functions
Migrate is a helper function to migrate the database up to its most recent version.
NewDB creates a new DB instance by using the given connection parameters It will also migrate the database to the most recent version.
NewDBWithConnection creates a new DB instance using an existing SQLX DB connection
The data dir parameter is used to get the files corresponding to attachments from the file system
ATTENTION: This func will NOT perform a database migration!.