Added database models to api