Second commit

add database support, models, openid