Create databasemode enum for server side