demo code for website, database access