Added postgresql adapter
Fixed database settings