added module & bed to database design. Updated SQL test with module & bed tests. Added insert for MongoDB