got database working HOORAY