from_db implemented