Made "locais" dynamic from the SQL database