added database layer

in database layer, added two classes.
connection class and user class