Implments the database requirement