Add mapper [SERINA-10]

Move database connection as a reference inside the base mapper. Should
that be a singleton? I can't decide.