added exception throws for the databaseService methods