Database work, added printing method