Got rid of all getlines except for the ones in database