fixed frame bug.
frames are now all referenced through the database.