Begin database input