No more time to work on it today and getting a timeout error when importing the database, but moving to a bash script rather than exec might resolve it.