contacts view connected to db
code clean up