Getting frentes from database