fixed bug in relations database introduced by last commit, actually did what last commit said