interaction with database using scaffold