test adds to database