Refactored database + implemented new resolver methods. Likes and bayans functionality pending