added tests
switched to postgress database