added db dir and log dir, modded gems and git ignore