Script for manage the database tasks