fixed issue w database schema