add gitignore
change db import class, change method for connect to db