Add database first