Separate data from db