Hosting account remains free though I paid, website gets error connecting to database

Premium accounts are separate. You can ask premium support to migrate your free account to the premium account you purchased for free at support.iFastNet.com (you’ll need to create a new account there)