Storing length outside of db.