set_database function

Setting database in GitAI object.