Moved custom database types into dbtypes.py