moved require_lib to correct path and added mogoid config