Fixed db backend to create new line when data is not in databases.