hookup with db and add openid support