Tried implementing a load from db but fails