First php files for connecting and main php functions