Create database class