beginers works with database class