Remove the database functionalities

It doesn't belong here, but in a separate module