Remove from/import and update to PHP5.4.
Connection to database is done the latest we can