only ask for db if using mvc