setting database