Add database class for web